package com.usian.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


import java.util.List;


public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user")
    List<User> findAll();
    @Select("select * from user where userName=#{userName} and password=#{password}")
    User findByNameAndPwd(@Param("userName") String userName,@Param("password") String password);
    /*@Insert("insert into user values(#{id},#{userName},#{address},#{inputDate},#{roleld})")
    void insertt(User user);*/
}
